STEP 10: The value of time is 7. We can change the time by changing the second argument in the function call.

The str() command turns a number into a string, letting us combine strings and integers. This is called casting.

  • Change the string in the .Text() command to "Party starts at " + str(time).
  • Change the x-coordinate to 0 and the y-coordinate to 150.
  • Change the color to "green".

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)